<template>
	<view class="contain">
		<u-cell-group :customStyle="cellStyle">
				<u-cell title="个人资料" :isLink="true" arrow-direction="right" @click="itemClick('../shop_myset/shop_myset')"></u-cell>
				<u-cell title="账号&安全" :isLink="true" arrow-direction="right" @click="itemClick('../shop_countsafe/shop_countsafe')"></u-cell>
				<u-cell title="隐私政策" :isLink="true" arrow-direction="right" @click="itemClick('./webView/webView')"></u-cell>
				<u-cell title="用户使用协议" :isLink="true" arrow-direction="right" @click="itemClick('./webView/webView')"></u-cell>
				<u-cell title="个人信息使用清单" :isLink="true" arrow-direction="right" @click="itemClick('./webView/webView')"></u-cell>
				<u-cell title="账号注销" :isLink="true" arrow-direction="right"></u-cell>
				<u-cell title="关于我们" :isLink="true" arrow-direction="right" @click="itemClick('./webView/webView')"></u-cell>
		</u-cell-group>
		<u-cell-group :customStyle="cellStyle">
			<u-cell title="版本更新" :isLink="true" arrow-direction="right" value="当前版本v1.2.5"></u-cell>
		</u-cell-group>
		<u-cell-group :customStyle="cellStyle">
			<u-cell title="退出登录" :isLink="true" arrow-direction="right" @click="logout"></u-cell>
		</u-cell-group>
	</view>
</template>

<script setup lang='ts'>
import { ref,reactive } from 'vue'
const cellStyle=reactive({
	"background":"#FFFFFF",
	"marginBottom":"20rpx"
});
const itemClick=(url:string)=>{
	uni.$tools.GoUrl(url);
};		

const logout=()=>{
	uni.clearStorageSync();
	uni.$tools.GoUrl("/pages/shop_login/shop_login",2);
}
</script>
<style>
	page{
		background:#F8F8F8;
	}
</style>
<style lang='scss' scoped>
	@import "shop_setlist.scss";
</style>